<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <link rel="Bookmark" href="../imgs/bai.ico"/>
    <link rel="Shortcut Icon" href="../imgs/bai.ico"/>
    <title>家政</title>
    <!--<link rel="stylesheet" type="text/css" href="../css/index.css"/>-->
    <style type="text/css">
        body { margin: 0; }
        #header { padding: 10px 0; width: 100%; background: #FFFFFF; color: #555555; text-align: center;
            position: fixed; top: 0; left: 0; z-index: 100; }
        #fanhui { color: #0088CC; position: fixed; top: 10px; left: 15px; z-index: 100; }
        #imgList { width: 100%; height: 100vh; overflow: auto; display: none; }
        #imgList img { width: 100%; }
    </style>
</head>
<body>
    <!--header-->
    <div id="header">工作图集</div>
    <span id="fanhui" onclick="window.location.href='work.html';">返回</span>

    <!--图片平铺-->
    <div id="imgList"></div>

    <span id="msgPop"></span>
</body>
</html>


<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../js/view.js"></script>
<script type="text/javascript">
    var cw = document.documentElement.clientWidth;
    var ch = document.documentElement.clientHeight;
    var day = getParamByUrl('day');
    (function () {
        getList();
    })();
    function getList(){
        $.ajax({
            type: apis.imgList.method,
            url: apis.imgList.url,
            data: { day: day },
            success: function (res) {
                console.log(res);
                if (res.code != 0) {
                    console.log(res.msg);
                }
                var d = res.data;
                var h = '', i;
                for (i = 0; i < d.length; i ++) {
                    h += '<img src="' + d[i].img + '"/>';
                }
                $('#imgList').html(h).show();
            },
            error: function () {
                console.log('网络错误');
            }
        });
    }
</script>